package com.neuedu.jdbc.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;

@RestController
public class UmsUserController {


    @Autowired
    DataSource dataSource;


    @Autowired
    JdbcTemplate jdbcTemplate;

    /**
     * http://127.0.0.1:8080/test
     * @return
     */
    @RequestMapping("/test")
    String test(){

        System.out.println(dataSource);
        System.out.println("jdbcTemplate = " + jdbcTemplate);
        return  "success";
    }



}
